using System;
using System.Collections.Generic;
using System.Text;
using Google.GData.Calendar;
using Google.GData.Client;
using Google.GData.Extensions;

namespace PocketGCal
{
    class GFeed
    {
        public GFeed()
        { }

        private string feedName;

        public string FeedName
        {
            get { return feedName; }
            set { feedName = value; }
        }

        private string feedUrl;

        public string FeedUrl
        {
            get { return feedUrl; }
            set { feedUrl = value; }
        }

        public EventFeed GetEventFeed()
        {

            EventQuery query = new EventQuery(this.FeedUrl);
            query.StartTime = DateTime.Now.AddDays(-28);
            query.EndTime = DateTime.Now.AddMonths(6);
            return GoogleCalendar.Service.Query(query);
        }
    }
}
